package com.vlh.battleship.server.integration.dto.game;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Data;

import com.vlh.battleship.server.integration.dto.Player;
import com.vlh.battleship.server.integration.dto.board.Tile;

@Data
public class Game {

	private int id;
	private Player challenger;
	private Player challenged;
	private Player turn;
	private Player winner;
	private int status;
	private Date startDate;
	private List<Tile> tiles;

	public List<Tile> getTiles() {
		if (tiles == null) {
			tiles = new ArrayList<Tile>();
			return tiles;
		} else {
			return tiles;
		}
	}
}
